Skip to content

Conversation

@rombirli
Copy link
Contributor

@rombirli rombirli commented Dec 17, 2025

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Dec 17, 2025

SONARJAVA-4960

@rombirli rombirli force-pushed the rombirli/S1854-false-positive branch from 19d09dc to 947f918 Compare December 18, 2025 08:39
@rombirli rombirli marked this pull request as ready for review December 19, 2025 13:41
@github-actions
Copy link
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions bot added the stale label Dec 27, 2025
@github-actions github-actions bot closed this Jan 4, 2026
@rombirli rombirli reopened this Jan 5, 2026
@rombirli rombirli requested a review from a team January 5, 2026 07:40
}

@Test
void test_fp() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test name should be more precise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed test_incomplete_semantic as a more precise name in my last commit

assertThat(unknownSymbol.isPackageSymbol()).isFalse();
assertThat(unknownSymbol.isTypeSymbol()).isFalse();
assertThat(unknownSymbol.isVariableSymbol()).isFalse();
assertThat(unknownSymbol.isMethodSymbol()).isFalse();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't read this carefully, but I'm wondering why this is removed instead of reverting the condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it back

Copy link
Contributor Author

@rombirli rombirli Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit :
this line 174 is inside of function private static void assertCommonProperties(Symbol unknownSymbol) which is used by all kinds of unknown symbols tests (unknown_type_symbol, unknown_method_symbol, ...), the isMethodSymbol function is no longer final in the parent abstact class UnknownSymbol , the result can be overriden differently in each child class (UnkownTypeSymbol, UnknownMethodSymbol).

@sonarqube-next
Copy link

sonarqube-next bot commented Jan 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants